package cn.dansj.common.utils.spring.request.servlet;

import javax.servlet.ServletOutputStream;
import javax.servlet.WriteListener;
import java.io.IOException;

class NonServletOutputStream extends ServletOutputStream {
    public static final NonServletOutputStream INSTANCE = new NonServletOutputStream();

    @Override
    public boolean isReady() {
        return false;
    }

    @Override
    public void setWriteListener(WriteListener listener) {

    }

    @Override
    public void write(int b) throws IOException {

    }
}
